package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.*;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_permission")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Permission extends BaseEntity implements Serializable {

    @Column(comment = "权限编码", value = "code")
    private String code;

    @Column(comment = "权限名称", value = "name")
    private String name;

    @Column(comment = "是否为客户权限", value = "has_personal")
    private Boolean hasPersonal;

    @Column(comment = "父级权限ID", value = "parent_id")
    private Long parentId;

    @Column(comment = "权限层级", value = "level_number")
    private Long levelNumber;


}
